package com.asset.dispoal.address.service.commom;

import com.asset.dispoal.address.domain.db.mapper.ConvertAreaCodeMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
import tech.mhuang.pacebox.core.ddd.BaseCommandNoParam;
import tech.mhuang.pacebox.springboot.protocol.Result;

@Component
public class ConvertAreaCodeQueryAllCommand implements BaseCommandNoParam<Result> {

    @Autowired
    private ConvertAreaCodeMapper convertAreaCodeMapper;

    @Override
    public Result execute() {
        return Result.ok(convertAreaCodeMapper.queryAll());
    }
}
